package com.label.Model.Query;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.label.Model.Common.Validation.Del;
import com.label.Model.Common.Validation.Get;
import com.label.Model.Common.Validation.Update;
import com.label.Model.Do.Strategy;
import com.label.Model.Do.Tag;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

@Data
public class ActivityQuery {

    @NotBlank(message = "ID不为空！",groups = {Get.class, Update.class, Del.class})
    private String id;

    private String name;

    private String orgId;

    private String orgLevel;

    private List<String> levels;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orgStartTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orgEndTime;

    private String orgTid;

    private String orgSid;

    private List<Long> tags;

    private String strategyId;

    private String categoryId;

    public ActivityQuery(){}

    public ActivityQuery(String id ){this.id=id;}

}
